layui.use(['layer', 'form', 'admin', 'laydate', 'ax', 'formSelects','upload'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;

    // 表单提交事件
    form.on('submit(btnSubmit)', function (data) {
        var userId = $("#userId").val();
        var userName = $("#userName").val();    
        var parent$ = window.parent.layui.jquery;
        parent$("#yinr").append('<div class="layui-input-inline" id="'+userId+'"> <img style="width: 20px;position: relative;left: 130px;top: 10px;" lay-filter="imgck" id="imgck" name="'+userId+'" src="'+Feng.ctxPath+'/assets/common/images/u20603.png" /><input style="text-align: center;width: 140px;height: 60px;" lay-filter="nicknames" type="text" name="'+userId+'" id="userNames" autocomplete="off" class="layui-input" value="'+userName+'" disabled></div>');
        //parent$("#url").val($("#urls").val());
        //parent$("#contex").text($("#content").val());
        //parent$("#statuss").siblings("div.layui-form-select").find('dl dd[lay-value=' + 2 + ']').click();
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        parent.layer.close(index);
    });
    
});